const path = require('path');
const fs = require('fs');
const commander = require('commander');
const chalk = require('chalk');
const inquirer = require('inquirer');

const clearDist = require('./utils/clearExistedProj')

module.exports = projConf = {
    name: 'dist',
    version: '1.0.0',
    description: 'des ...',
    author: 'willye',
    serverconf: {
        port: 8080,
        cors: '*',
        root: '/',
        prefix: 'api'
    },
    dbconf: {
        host: '127.0.0.1',
        user: 'root',
        password: '12345',
        database: 'school_tree',
        dialect: 'mysql',
        port: 3306
    },
    codestyle: {
        indent_size: 2,
        space_in_empty_paren: true,
        brace_style: 'collapse-preserve-inline',
        wrap_line_length: 12000
    },
    cgiconf: {

    }
}

const entry = require('./entry');
entry();
// let fun = async () => {
//     let res = await clearDist(projConf.name)
//     console.log(res)
// }
// fun();